package com.ctbu.tourism.api;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface GradeAPI {

    //用户可发帖数
    @Select("select tb_grade.nums from tb_grade join tb_user on tb_user.grade = tb_grade.name and tb_user.id=#{uid}")
    Integer getUserCanPostNums(@Param("uid") Integer uid);

}
